<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>markdown语法入门🔥 | WR的博客</title>
    <meta name="generator" content="VuePress 1.9.10">
    
    <meta name="description" content="致力于打造个人专属的博客学习交流网站">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no">
    
    <link rel="preload" href="/wr-blog/assets/css/0.styles.88190f72.css" as="style"><link rel="preload" href="/wr-blog/assets/js/app.73e5e68b.js" as="script"><link rel="preload" href="/wr-blog/assets/js/7.d3832998.js" as="script"><link rel="preload" href="/wr-blog/assets/js/2.d961667a.js" as="script"><link rel="preload" href="/wr-blog/assets/js/1.7b006088.js" as="script"><link rel="preload" href="/wr-blog/assets/js/39.9d6dfacc.js" as="script"><link rel="prefetch" href="/wr-blog/assets/js/10.3d524b2b.js"><link rel="prefetch" href="/wr-blog/assets/js/11.f9918ba0.js"><link rel="prefetch" href="/wr-blog/assets/js/14.acabcac7.js"><link rel="prefetch" href="/wr-blog/assets/js/15.a0023138.js"><link rel="prefetch" href="/wr-blog/assets/js/16.f15d4182.js"><link rel="prefetch" href="/wr-blog/assets/js/17.910a1296.js"><link rel="prefetch" href="/wr-blog/assets/js/18.52ab94ff.js"><link rel="prefetch" href="/wr-blog/assets/js/19.e439e0f6.js"><link rel="prefetch" href="/wr-blog/assets/js/20.5ed78904.js"><link rel="prefetch" href="/wr-blog/assets/js/21.6d3903e1.js"><link rel="prefetch" href="/wr-blog/assets/js/22.ef57d790.js"><link rel="prefetch" href="/wr-blog/assets/js/23.5ebd8e57.js"><link rel="prefetch" href="/wr-blog/assets/js/24.e2cb31eb.js"><link rel="prefetch" href="/wr-blog/assets/js/25.acecc9e8.js"><link rel="prefetch" href="/wr-blog/assets/js/26.afe32029.js"><link rel="prefetch" href="/wr-blog/assets/js/27.16a73548.js"><link rel="prefetch" href="/wr-blog/assets/js/28.6b2a74e3.js"><link rel="prefetch" href="/wr-blog/assets/js/29.fb2bf719.js"><link rel="prefetch" href="/wr-blog/assets/js/3.0391fe29.js"><link rel="prefetch" href="/wr-blog/assets/js/30.6395f2f8.js"><link rel="prefetch" href="/wr-blog/assets/js/31.2959fc1c.js"><link rel="prefetch" href="/wr-blog/assets/js/32.535a2399.js"><link rel="prefetch" href="/wr-blog/assets/js/33.89b2efc1.js"><link rel="prefetch" href="/wr-blog/assets/js/34.4aa5c60b.js"><link rel="prefetch" href="/wr-blog/assets/js/35.aa174538.js"><link rel="prefetch" href="/wr-blog/assets/js/36.f9c9a87c.js"><link rel="prefetch" href="/wr-blog/assets/js/37.6d8c4486.js"><link rel="prefetch" href="/wr-blog/assets/js/38.ea1cdb23.js"><link rel="prefetch" href="/wr-blog/assets/js/4.0123fde6.js"><link rel="prefetch" href="/wr-blog/assets/js/40.f29b5acb.js"><link rel="prefetch" href="/wr-blog/assets/js/41.dfcf1f43.js"><link rel="prefetch" href="/wr-blog/assets/js/42.58115651.js"><link rel="prefetch" href="/wr-blog/assets/js/43.515f49bb.js"><link rel="prefetch" href="/wr-blog/assets/js/44.727ff135.js"><link rel="prefetch" href="/wr-blog/assets/js/45.85fab5f9.js"><link rel="prefetch" href="/wr-blog/assets/js/46.480202c9.js"><link rel="prefetch" href="/wr-blog/assets/js/5.ef476aba.js"><link rel="prefetch" href="/wr-blog/assets/js/6.6812d23b.js"><link rel="prefetch" href="/wr-blog/assets/js/8.c27dbd3d.js"><link rel="prefetch" href="/wr-blog/assets/js/9.e90c9183.js"><link rel="prefetch" href="/wr-blog/assets/js/vendors~docsearch.81e35981.js">
    <link rel="stylesheet" href="/wr-blog/assets/css/0.styles.88190f72.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container no-sidebar" data-v-7dd95ae2><div data-v-7dd95ae2><div class="password-shadow password-wrapper-out" style="display:none;" data-v-59e6cb88 data-v-7dd95ae2 data-v-7dd95ae2><h3 class="title" data-v-59e6cb88>WR的博客</h3> <p class="description" data-v-59e6cb88>致力于打造个人专属的博客学习交流网站</p> <label id="box" class="inputBox" data-v-59e6cb88><input type="password" value="" data-v-59e6cb88> <span data-v-59e6cb88>Konck! Knock!</span> <button data-v-59e6cb88>OK</button></label> <div class="footer" data-v-59e6cb88><span data-v-59e6cb88><i class="iconfont reco-theme" data-v-59e6cb88></i> <a target="blank" href="https://vuepress-theme-reco.recoluan.com" data-v-59e6cb88>vuePress-theme-reco</a></span> <span data-v-59e6cb88><i class="iconfont reco-copyright" data-v-59e6cb88></i> <a data-v-59e6cb88><span data-v-59e6cb88>WR</span>
          
        <!---->
        2024
      </a></span></div></div> <div class="hide" data-v-7dd95ae2><header class="navbar" data-v-7dd95ae2><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/wr-blog/" class="home-link router-link-active"><img src="/wr-blog/佐助.gif" alt="WR的博客" class="logo"> <span class="site-name">WR的博客</span></a> <div class="links"><div class="color-picker"><a class="color-button"><i class="iconfont reco-color"></i></a> <div class="color-picker-menu" style="display:none;"><div class="mode-options"><h4 class="title">Choose mode</h4> <ul class="color-mode-options"><li class="dark">dark</li><li class="auto active">auto</li><li class="light">light</li></ul></div></div></div> <div class="search-box"><i class="iconfont reco-search"></i> <input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/wr-blog/" class="nav-link"><i class="iconfont reco-home"></i>
  首页
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-account"></i>
      我的
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://juejin.cn/user/2896578334167364" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont reco-juejin"></i>
  掘金
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://github.com/WeiMingChang" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont reco-github"></i>
  Github
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://gitee.com/wmc19911216" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont reco-mayun"></i>
  码云
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://www.zhihu.com/people/xie-zi-86-82-16" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont reco-zhihu"></i>
  知乎
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-category"></i>
      博客
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/wr-blog/categories/语言/" class="nav-link"><i class="undefined"></i>
  语言
</a></li><li class="dropdown-item"><!----> <a href="/wr-blog/categories/web/" class="nav-link"><i class="undefined"></i>
  web
</a></li><li class="dropdown-item"><!----> <a href="/wr-blog/categories/运维/" class="nav-link"><i class="undefined"></i>
  运维
</a></li><li class="dropdown-item"><!----> <a href="/wr-blog/categories/业务开发/" class="nav-link"><i class="undefined"></i>
  业务开发
</a></li><li class="dropdown-item"><!----> <a href="/wr-blog/categories/微信开发/" class="nav-link"><i class="undefined"></i>
  微信开发
</a></li><li class="dropdown-item"><!----> <a href="/wr-blog/categories/版本管理/" class="nav-link"><i class="undefined"></i>
  版本管理
</a></li></ul></div></div><div class="nav-item"><a href="/wr-blog/tag/" class="nav-link"><i class="iconfont reco-tag"></i>
  标签
</a></div><div class="nav-item"><a href="/wr-blog/timeline/" class="nav-link"><i class="iconfont reco-date"></i>
  时间线
</a></div> <!----></nav></div></header> <div class="sidebar-mask" data-v-7dd95ae2></div> <aside class="sidebar" data-v-7dd95ae2><div class="personal-info-wrapper" data-v-1fad0c41 data-v-7dd95ae2><img src="/wr-blog/佐助.jpeg" alt="author-avatar" class="personal-img" data-v-1fad0c41> <h3 class="name" data-v-1fad0c41>
    WR
  </h3> <div class="num" data-v-1fad0c41><div data-v-1fad0c41><h3 data-v-1fad0c41>8</h3> <h6 data-v-1fad0c41>文章</h6></div> <div data-v-1fad0c41><h3 data-v-1fad0c41>10</h3> <h6 data-v-1fad0c41>标签</h6></div></div> <ul class="social-links" data-v-1fad0c41></ul> <hr data-v-1fad0c41></div> <nav class="nav-links"><div class="nav-item"><a href="/wr-blog/" class="nav-link"><i class="iconfont reco-home"></i>
  首页
</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-account"></i>
      我的
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://juejin.cn/user/2896578334167364" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont reco-juejin"></i>
  掘金
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://github.com/WeiMingChang" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont reco-github"></i>
  Github
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://gitee.com/wmc19911216" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont reco-mayun"></i>
  码云
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li><li class="dropdown-item"><!----> <a href="https://www.zhihu.com/people/xie-zi-86-82-16" target="_blank" rel="noopener noreferrer" class="nav-link external"><i class="iconfont reco-zhihu"></i>
  知乎
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title"><i class="iconfont reco-category"></i>
      博客
    </span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/wr-blog/categories/语言/" class="nav-link"><i class="undefined"></i>
  语言
</a></li><li class="dropdown-item"><!----> <a href="/wr-blog/categories/web/" class="nav-link"><i class="undefined"></i>
  web
</a></li><li class="dropdown-item"><!----> <a href="/wr-blog/categories/运维/" class="nav-link"><i class="undefined"></i>
  运维
</a></li><li class="dropdown-item"><!----> <a href="/wr-blog/categories/业务开发/" class="nav-link"><i class="undefined"></i>
  业务开发
</a></li><li class="dropdown-item"><!----> <a href="/wr-blog/categories/微信开发/" class="nav-link"><i class="undefined"></i>
  微信开发
</a></li><li class="dropdown-item"><!----> <a href="/wr-blog/categories/版本管理/" class="nav-link"><i class="undefined"></i>
  版本管理
</a></li></ul></div></div><div class="nav-item"><a href="/wr-blog/tag/" class="nav-link"><i class="iconfont reco-tag"></i>
  标签
</a></div><div class="nav-item"><a href="/wr-blog/timeline/" class="nav-link"><i class="iconfont reco-date"></i>
  时间线
</a></div> <!----></nav> <!----> </aside> <div class="password-shadow password-wrapper-in" style="display:none;" data-v-59e6cb88 data-v-7dd95ae2><h3 class="title" data-v-59e6cb88>markdown语法入门🔥</h3> <!----> <label id="box" class="inputBox" data-v-59e6cb88><input type="password" value="" data-v-59e6cb88> <span data-v-59e6cb88>Konck! Knock!</span> <button data-v-59e6cb88>OK</button></label> <div class="footer" data-v-59e6cb88><span data-v-59e6cb88><i class="iconfont reco-theme" data-v-59e6cb88></i> <a target="blank" href="https://vuepress-theme-reco.recoluan.com" data-v-59e6cb88>vuePress-theme-reco</a></span> <span data-v-59e6cb88><i class="iconfont reco-copyright" data-v-59e6cb88></i> <a data-v-59e6cb88><span data-v-59e6cb88>WR</span>
          
        <!---->
        2024
      </a></span></div></div> <div data-v-7dd95ae2><div data-v-7dd95ae2><main class="page"><section style="display:;"><div class="page-title"><h1 class="title">markdown语法入门🔥</h1> <div data-v-8a445198><i class="iconfont reco-account" data-v-8a445198><span data-v-8a445198>WR</span></i> <i class="iconfont reco-date" data-v-8a445198><span data-v-8a445198>2024/7/10</span></i> <!----> <i class="tags iconfont reco-tag" data-v-8a445198><span class="tag-item" data-v-8a445198>文章</span></i></div></div> <div class="theme-reco-content content__default"><div class="custom-block tip"><p class="title"></p><p>Markdown 从小白到进阶学习计划</p> <ol><li>熟练掌握 Markdown 的基本语法和常用标记，能够使用 Markdown 进行基本的文档编辑。</li> <li>深入了解 Markdown 的高级特性和扩展语法，如表格、脚注、数学公式等，能够运用这些特性创作内容丰富、格式规范的文档。</li> <li>掌握将 Markdown 文档转换为其他格式（如 HTML、PDF 等）的方法，提高文档的通用性和可读性。</li> <li>能够在实际项目和工作中灵活运用 Markdown ，提高文档创作效率和质量。</li></ol></div><h1 id="一、markdown-基础语法"><a href="#一、markdown-基础语法" class="header-anchor">#</a> 一、Markdown 基础语法</h1> <h2 id="一-标题"><a href="#一-标题" class="header-anchor">#</a> （一）标题</h2> <p>语法：使用 # 号来表示标题，# 的数量对应标题的级别，一个 # 是一级标题，两个 # 是二级标题，以此类推。</p> <div class="language- extra-class"><pre class="language-text"><code>示例：
# 一级标题
## 二级标题
### 三级标题
</code></pre></div><h2 id="二-段落"><a href="#二-段落" class="header-anchor">#</a> （二）段落</h2> <ol><li>换行：在行末添加两个或以上的空格，然后按下回车键，即可实现换行。</li> <li>分隔段落：使用一个空行来分隔不同的段落。</li></ol> <h2 id="三-强调"><a href="#三-强调" class="header-anchor">#</a> （三）强调</h2> <ol><li><strong>斜体</strong>：使用 * 或 _ 将需要变为斜体的文本包裹起来，例如：<code>*这是斜体* 或 _这是斜体_。</code></li> <li><strong>加粗</strong>：使用两个 * 或两个 _ 将需要加粗的文本包裹起来，例如：<code>**这是加粗** 或 __这是加粗__。</code></li></ol> <h2 id="四-列表"><a href="#四-列表" class="header-anchor">#</a> （四）列表</h2> <ol><li><strong>无序列表</strong>：使用 -、* 或 + 作为列表项的起始符号，例如：</li></ol> <div class="language- extra-class"><pre class="language-text"><code>- 列表项 1
* 列表项 2
+ 列表项 3
</code></pre></div><ol start="2"><li><strong>有序列表</strong>：使用数字加 . 作为列表项的起始符号，数字后面需要有一个空格，例如：</li></ol> <div class="language- extra-class"><pre class="language-text"><code>1. 列表项 1
2. 列表项 2
3. 列表项 3
</code></pre></div><h2 id="五-引用"><a href="#五-引用" class="header-anchor">#</a> （五）引用</h2> <p>使用 &gt; 来表示引用内容，例如：</p> <div class="language- extra-class"><pre class="language-text"><code>&gt; 这是引用的内容
</code></pre></div><h1 id="二、markdown-高级语法"><a href="#二、markdown-高级语法" class="header-anchor">#</a> 二、Markdown 高级语法</h1> <h2 id="一-链接"><a href="#一-链接" class="header-anchor">#</a> （一）链接</h2> <ol><li><strong>内联链接</strong>：<code>格式为 [链接文本](链接地址)，例如：[百度](https://www.baidu.com)。</code></li> <li><strong>参考式链接</strong>：<code>先在文中需要添加链接的地方使用 [链接文本][链接标识符]，然后在文档末尾添加 [链接标识符]: 链接地址，例如：文中 [百度][baidu_link]，文档末尾 [baidu_link]: https://www.baidu.com</code></li></ol> <h2 id="二-图片"><a href="#二-图片" class="header-anchor">#</a> （二）图片</h2> <p>格式为<code>![图片替代文本](图片地址)，例如：![示例图片](https://example.com/image.jpg)</code></p> <h2 id="三-代码块"><a href="#三-代码块" class="header-anchor">#</a> （三）代码块</h2> <p>使用三个连续的反引号（```）包裹代码内容，还可以在开头的反引号后面指定语言，例如：</p> <div class="language-javascript extra-class"><pre class="language-javascript"><code><span class="token keyword">function</span> <span class="token function">add</span><span class="token punctuation">(</span><span class="token parameter">a<span class="token punctuation">,</span> b</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
  <span class="token keyword">return</span> a <span class="token operator">+</span> b<span class="token punctuation">;</span>
<span class="token punctuation">}</span>
</code></pre></div><h2 id="四-表格"><a href="#四-表格" class="header-anchor">#</a> （四）表格</h2> <p>使用 | 来分隔单元格，使用 - 来分隔表头和其他行，例如：</p> <div class="language- extra-class"><pre class="language-text"><code>|表头|表头|
|----|----|
|单元格|单元格|
|单元格|单元格|
</code></pre></div><p>在上述语法中，第二行的 - 数量可以根据需要进行调整，但至少要有一个。<br>
表格的对齐方式可以通过在表头下方的分隔行中添加 : 来设置：</p> <ul><li>:- 表示内容和标题栏居左对齐；</li> <li>-: 表示内容和标题栏居右对齐；</li> <li>:-: 表示内容和标题栏居中对齐。</li></ul> <table><thead><tr><th>姓名</th> <th style="text-align:center;">年龄</th> <th>职业</th></tr></thead> <tbody><tr><td>张三</td> <td style="text-align:center;">20</td> <td>工程师</td></tr> <tr><td>李四</td> <td style="text-align:center;">25</td> <td>设计师</td></tr></tbody></table> <h2 id="五-脚注"><a href="#五-脚注" class="header-anchor">#</a> （五）脚注</h2> <p>使用 (^脚注标识符) 在文中引用脚注</p> <h1 id="三、练习与实践"><a href="#三、练习与实践" class="header-anchor">#</a> 三、练习与实践</h1> <ol><li>选择一款 Markdown 编辑器，如 Typora、MarkdownPad 等。</li> <li>找一些简单的文档主题，如“我的一天”“我的兴趣爱好”等，使用基础语法进行文档创作。</li> <li>深入一些，撰写技术文档、项目报告等，运用高级语法，如添加链接、图片、代码块等。</li> <li>尝试将 Markdown 文档转换为不同格式（如 HTML、PDF 等），查看转换后的效果，了解不同格式的用途和适用场景。</li></ol> <h1 id="四、学习资源与拓展"><a href="#四、学习资源与拓展" class="header-anchor">#</a> 四、学习资源与拓展</h1> <ol><li>在线教程：<a href="https://daringfireball.net/projects/markdown/syntax" target="_blank" rel="noopener noreferrer">Markdown 官方文档<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>、<a href="https://markdown.com.cn/" target="_blank" rel="noopener noreferrer">Markdown 中文网<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></li> <li>书籍：《Markdown 从入门到精通》《精通 Markdown》</li></ol></div></section> <footer class="page-edit"><!----> <!----></footer> <!----> <div class="comments-wrapper"><!----></div></main></div> <!----></div> <ul class="sub-sidebar sub-sidebar-wrapper" style="width:12rem;" data-v-b57cc07c data-v-7dd95ae2><li class="level-2" data-v-b57cc07c><a href="/wr-blog/blogs/blog-0.html#一-标题" class="sidebar-link reco-side-一-标题" data-v-b57cc07c>（一）标题</a></li><li class="level-2" data-v-b57cc07c><a href="/wr-blog/blogs/blog-0.html#二-段落" class="sidebar-link reco-side-二-段落" data-v-b57cc07c>（二）段落</a></li><li class="level-2" data-v-b57cc07c><a href="/wr-blog/blogs/blog-0.html#三-强调" class="sidebar-link reco-side-三-强调" data-v-b57cc07c>（三）强调</a></li><li class="level-2" data-v-b57cc07c><a href="/wr-blog/blogs/blog-0.html#四-列表" class="sidebar-link reco-side-四-列表" data-v-b57cc07c>（四）列表</a></li><li class="level-2" data-v-b57cc07c><a href="/wr-blog/blogs/blog-0.html#五-引用" class="sidebar-link reco-side-五-引用" data-v-b57cc07c>（五）引用</a></li><li class="level-2" data-v-b57cc07c><a href="/wr-blog/blogs/blog-0.html#一-链接" class="sidebar-link reco-side-一-链接" data-v-b57cc07c>（一）链接</a></li><li class="level-2" data-v-b57cc07c><a href="/wr-blog/blogs/blog-0.html#二-图片" class="sidebar-link reco-side-二-图片" data-v-b57cc07c>（二）图片</a></li><li class="level-2" data-v-b57cc07c><a href="/wr-blog/blogs/blog-0.html#三-代码块" class="sidebar-link reco-side-三-代码块" data-v-b57cc07c>（三）代码块</a></li><li class="level-2" data-v-b57cc07c><a href="/wr-blog/blogs/blog-0.html#四-表格" class="sidebar-link reco-side-四-表格" data-v-b57cc07c>（四）表格</a></li><li class="level-2" data-v-b57cc07c><a href="/wr-blog/blogs/blog-0.html#五-脚注" class="sidebar-link reco-side-五-脚注" data-v-b57cc07c>（五）脚注</a></li></ul></div></div></div><div class="global-ui"><div class="back-to-ceiling" style="right:1rem;bottom:6rem;width:2.5rem;height:2.5rem;border-radius:.25rem;line-height:2.5rem;display:none;" data-v-c6073ba8 data-v-c6073ba8><svg t="1574745035067" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5404" class="icon" data-v-c6073ba8><path d="M526.60727968 10.90185116a27.675 27.675 0 0 0-29.21455937 0c-131.36607665 82.28402758-218.69155461 228.01873535-218.69155402 394.07834331a462.20625001 462.20625001 0 0 0 5.36959153 69.94390903c1.00431239 6.55289093-0.34802892 13.13561351-3.76865779 18.80351572-32.63518765 54.11355614-51.75690182 118.55860487-51.7569018 187.94566865a371.06718723 371.06718723 0 0 0 11.50484808 91.98906777c6.53300375 25.50556257 41.68394495 28.14064038 52.69160883 4.22606766 17.37162448-37.73630017 42.14135425-72.50938081 72.80769204-103.21549295 2.18761121 3.04276886 4.15646224 6.24463696 6.40373557 9.22774369a1871.4375 1871.4375 0 0 0 140.04691725 5.34970492 1866.36093723 1866.36093723 0 0 0 140.04691723-5.34970492c2.24727335-2.98310674 4.21612437-6.18497483 6.3937923-9.2178004 30.66633723 30.70611158 55.4360664 65.4791928 72.80769147 103.21549355 11.00766384 23.91457269 46.15860503 21.27949489 52.69160879-4.22606768a371.15156223 371.15156223 0 0 0 11.514792-91.99901164c0-69.36717486-19.13165746-133.82216804-51.75690182-187.92578088-3.42062944-5.66790279-4.76302748-12.26056868-3.76865837-18.80351632a462.20625001 462.20625001 0 0 0 5.36959269-69.943909c-0.00994388-166.08943902-87.32547796-311.81420293-218.6915546-394.09823051zM605.93803103 357.87693858a93.93749974 93.93749974 0 1 1-187.89594924 6.1e-7 93.93749974 93.93749974 0 0 1 187.89594924-6.1e-7z" p-id="5405" data-v-c6073ba8></path><path d="M429.50777625 765.63860547C429.50777625 803.39355007 466.44236686 1000.39046097 512.00932183 1000.39046097c45.56695499 0 82.4922232-197.00623328 82.5015456-234.7518555 0-37.75494459-36.9345906-68.35043303-82.4922232-68.34111062-45.57627738-0.00932239-82.52019037 30.59548842-82.51086798 68.34111062z" p-id="5406" data-v-c6073ba8></path></svg></div><div class="Sakura" data-v-248d85d6><canvas id="canvas_sakura" style="z-index:-1;" data-v-248d85d6></canvas></div><canvas id="vuepress-canvas-cursor"></canvas><div class="reco-bgm-panel" data-v-b1d3339e><audio id="bgm" src="https://www.shiyinren.com/server/1/346815898.mp3" data-v-b1d3339e></audio> <div class="reco-float-box" style="bottom:20px;z-index:999999;display:none;" data-v-b1d3339e data-v-41bcba48 data-v-b1d3339e><img src="https://p1.music.126.net/qTSIZ27qiFvRoKj-P30BiA==/109951165895951287.jpg?param=200y200" data-v-b1d3339e></div> <div class="reco-bgm-box" style="left:10px;bottom:10px;z-index:999999;" data-v-b1d3339e data-v-41bcba48 data-v-b1d3339e><div class="reco-bgm-cover" style="background-image:url(https://p1.music.126.net/qTSIZ27qiFvRoKj-P30BiA==/109951165895951287.jpg?param=200y200);" data-v-b1d3339e><div class="mini-operation" style="display:none;" data-v-b1d3339e><i class="reco-bgm reco-bgm-pause" style="display:none;" data-v-b1d3339e></i> <i class="reco-bgm reco-bgm-play" style="display:none;" data-v-b1d3339e></i></div> <div class="falut-message" style="display:none;" data-v-b1d3339e>
          播放失败
        </div></div> <div class="reco-bgm-info" data-v-b1d3339e data-v-41bcba48 data-v-b1d3339e><div class="info-box" data-v-b1d3339e><i class="reco-bgm reco-bgm-music music" data-v-b1d3339e></i>青花</div> <div class="info-box" data-v-b1d3339e><i class="reco-bgm reco-bgm-artist" data-v-b1d3339e></i>周传雄 / 蓝色土耳其</div> <div class="reco-bgm-progress" data-v-b1d3339e><div class="progress-bar" data-v-b1d3339e><div class="bar" data-v-b1d3339e></div></div></div> <div class="reco-bgm-operation" data-v-b1d3339e><i class="reco-bgm reco-bgm-last last" data-v-b1d3339e></i> <i class="reco-bgm reco-bgm-pause pause" style="display:none;" data-v-b1d3339e></i> <i class="reco-bgm reco-bgm-play play" data-v-b1d3339e></i> <i class="reco-bgm reco-bgm-next next" data-v-b1d3339e></i> <i class="reco-bgm reco-bgm-volume1 volume" data-v-b1d3339e></i> <i class="reco-bgm reco-bgm-mute mute" style="display:none;" data-v-b1d3339e></i> <div class="volume-bar" data-v-b1d3339e><div class="bar" data-v-b1d3339e></div></div></div></div> <div class="reco-bgm-left-box" data-v-b1d3339e data-v-41bcba48 data-v-b1d3339e><i class="reco-bgm reco-bgm-left" data-v-b1d3339e></i></div></div></div><div></div><div class="kanbanniang" data-v-5775ee02><div class="banniang-container" style="display:;" data-v-5775ee02><div class="messageBox" style="right:20px;bottom:190px;display:none;" data-v-5775ee02>
      欢迎来到 （$site.title）
    </div> <div class="operation" style="right:90px;bottom:40px;display:;" data-v-5775ee02><i class="kbnfont kbn-ban-home ban-home" data-v-5775ee02></i> <i class="kbnfont kbn-ban-message message" data-v-5775ee02></i> <i class="kbnfont kbn-ban-close close" data-v-5775ee02></i> <a target="_blank" href="https://vuepress-theme-reco.recoluan.com/views/plugins/kanbanniang.html" data-v-5775ee02><i class="kbnfont kbn-ban-info info" data-v-5775ee02></i></a> <i class="kbnfont kbn-ban-theme skin" style="display:none;" data-v-5775ee02></i></div> <canvas id="banniang" width="300px" height="300" class="live2d" style="right:90px;bottom:20px;opacity:0.9;" data-v-5775ee02></canvas></div> <div class="showBanNiang" style="display:none;" data-v-5775ee02>
    看板娘
  </div></div><!----></div></div>
    <script src="/wr-blog/assets/js/app.73e5e68b.js" defer></script><script src="/wr-blog/assets/js/7.d3832998.js" defer></script><script src="/wr-blog/assets/js/2.d961667a.js" defer></script><script src="/wr-blog/assets/js/1.7b006088.js" defer></script><script src="/wr-blog/assets/js/39.9d6dfacc.js" defer></script>
  </body>
</html>
